<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<?php
include('../resource/menu.php');
include('../resource/config.php'); 
include('../resource/phpqrcode/qrlib.php');

if (isset($_GET['LOUS']) ) { 
$LOUS = $_GET['LOUS']; 
$row = mysql_fetch_array ( mysql_query("SELECT * FROM `regusu` WHERE `LOUS` = '$LOUS' ")); 
?>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		
        <link href="../resource/responsive/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="../resource/responsive/bootstrap-responsive.min.css" rel="stylesheet">
        <script src="../resource/responsive/jquery.min.js"></script>
        <script src="../resource/responsive/bootstrap.min.js"></script>

	</head>
	<body>
		 	<div id="navbar"></div>

			<div id="verde" class="span9">
    			<div class="hero-unit">
						<p><b>Usuario:</b><br /><?php echo $row['LOUS']; ?> 
						<p><b>Nombre:</b><br /><?php echo $row['NAUS']; ?> 
						<?php
						$file = '../qr/'.$row['LOUS'].".png"; 
						$data = "Nombre: ".$row['NAUS']."\nUsuario: ".$row['LOUS'];
						// El tamaño de la imagen.
						$size = 10; 
						// Capacidad de corrección de errores.
						$level = QR_ECLEVEL_H; 
						QRcode::png($data, $file, $level, $size);
						?>
						<p><b>QR:</b><br />
						<img class="aligncenter size-full wp-image-1921" title="qr" src="<?php echo $file; ?>" alt="" width="280" height="280">
						<div class="span4">
					      <div class="alert alert-info">
					        <a href='listar.php'>Volver a la lista</a>
					      </div>
					    </div>
				</div>
			</div>
	</body>
</html>
<?php } ?> 